package com.base.pd.agent;

public class AgentGod extends Agent {
	
	private int lastDefect;

	public AgentGod() {
		super("God", "Batt");
	}

	@Override
	public boolean cooperate() {
		return (lastDefect<=0);
	}

	@Override
	public void update(int round, boolean myMove, boolean otherMove,
			int myScore, int otherScore) {	
		if(otherMove)
			lastDefect--;
		else
			lastDefect=2;
	}

	@Override
	public void init() {
	}

}
